﻿using System;
namespace GameLibrary
{
    using Interfaces;

    [Serializable]
    public abstract class AbstractGameObject
    {
        #region variables

        private static uint count = 0;

        public uint ID { get; private set; }
        internal void SetID(uint id)
        {
            this.ID = id;
        }

        #endregion

        #region constructor

        public AbstractGameObject()
        {
            count++;
            this.ID = count;
        }

        #endregion
    }
}
